package com.company.责任链模式;

public class TeamLeader extends Handler{
    public TeamLeader(Handler handler){
        super(handler);
    }

    @Override
    public void handle(Request request) {
        System.out.println("组长通过");
        if (request.getDays()>1){
            next.handle(request);
        }
    }
}
